package com.itools.core.ucenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author XUCHANG
 * @since 2021-07-23
 */
@Data
@TableName("itools_organization_info")
@ApiModel(value="OrganizationInfo对象", description="")
public class OrganizationInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "机构名称")
    private String name;

    @ApiModelProperty(value = "父ID")
    private String parentId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建用户")
    private String createUserId;

    @ApiModelProperty(value = "上次修改时间")
    private LocalDateTime lastUpdateTime;

    @ApiModelProperty(value = "上次修改用户")
    private String lastUpdateUserId;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "应用ID")
    private String applicationId;

    @ApiModelProperty(value = "code")
    private String code;

    @ApiModelProperty(value = "联系人部门")
    private String linkManDept;

    @ApiModelProperty(value = "联系人邮箱")
    private String linkManEmail;

    @ApiModelProperty(value = "联系人名称")
    private String linkManName;

    @ApiModelProperty(value = "联系人手机号")
    private String linkManPhone;

    @ApiModelProperty(value = "等级")
    private Integer rank;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "状态【启用：1；未启用：2】")
    private Integer status;

    @ApiModelProperty(value = "组织电话")
    private String phone;

    @ApiModelProperty(value = "组织类型【部门：1；区：2；机构：3】")
    private Integer type;

    @ApiModelProperty(value = "机构编号")
    private String organizationNumber;

    @ApiModelProperty(value = "管理员id")
    private String adminUserId;

    @ApiModelProperty(value = "排序字段")
    private Integer orderField;
}
